package com.woniuxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper extends BaseMapper<User> {
    @Update("update sys_user set cinema_id=#{cinemaId} where user_Id = #{userId}")
    void cinemaAdd(@Param("userId") int userId,@Param("cinemaId") int cinemaId);
    @Select("SELECT  * FROM sys_user WHERE sys_user.user_id = #{userId}")
    User getUser(@Param("userId") int userId);
}
